package com.yb.xczx.cloud.media.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("mq_message")
@ApiModel(value = "MqMessage对象", description = "")
public class MqMessage {

    @ApiModelProperty("消息id")
    @TableId("id")
    private String id;

    @ApiModelProperty("消息类型代码")
    @TableField("message_type")
    private String messageType;

    @ApiModelProperty("关联业务信息")
    @TableField("business_key1")
    private String businessKey1;

    @ApiModelProperty("关联业务信息")
    @TableField("business_key2")
    private String businessKey2;

    @ApiModelProperty("关联业务信息")
    @TableField("business_key3")
    private String businessKey3;

    @ApiModelProperty("消息队列主机")
    @TableField("mq_host")
    private String mqHost;

    @ApiModelProperty("消息队列端口")
    @TableField("mq_port")
    private Integer mqPort;

    @ApiModelProperty("消息队列虚拟主机")
    @TableField("mq_virtualhost")
    private String mqVirtualhost;

    @ApiModelProperty("队列名称")
    @TableField("mq_queue")
    private String mqQueue;

    @ApiModelProperty("通知次数")
    @TableField("inform_num")
    private Integer informNum;

    @ApiModelProperty("处理状态，0:初始，1:成功")
    @TableField("state")
    private String state;

    @ApiModelProperty("回复失败时间")
    @TableField("returnfailure_date")
    private LocalDateTime returnfailureDate;

    @ApiModelProperty("回复成功时间")
    @TableField("returnsuccess_date")
    private LocalDateTime returnsuccessDate;

    @ApiModelProperty("回复失败内容")
    @TableField("returnfailure_msg")
    private String returnfailureMsg;

    @ApiModelProperty("最近通知时间")
    @TableField("inform_date")
    private LocalDateTime informDate;

    @ApiModelProperty("阶段1处理状态, 0:初始，1:成功")
    @TableField("stage_state1")
    private String stageState1;

    @ApiModelProperty("阶段2处理状态, 0:初始，1:成功")
    @TableField("stage_state2")
    private String stageState2;

    @ApiModelProperty("阶段3处理状态, 0:初始，1:成功")
    @TableField("stage_state3")
    private String stageState3;

    @ApiModelProperty("阶段4处理状态, 0:初始，1:成功")
    @TableField("stage_state4")
    private String stageState4;


}
